<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style >
     *{
      margin: 0;
      padding: 0;
     }
     li{
      list-style: none;
     }
  </style>
</head>
<body>
  <div id="newsTab">
     <div>今天的第一个新闻</div>
     <div>今天星期一，马上放假了</div>
     <div>今天正月17</div>
  </div>
  <script src="./tab.js"></script>
  <script>
      new Tab({
        ele:"newsTab",
        wrapWidth:"1000px",
        wrapHeight:"600px",
        wrapBack:"#ff00ff",
        navList:["今日要闻","日期","正月报道"]
      })
  </script>
</body>
</html>